﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Keepo.Models
{
    public class ContactMail
    {
        public int ContactMailId { get; set; }

        [Required(ErrorMessage="יש להזין כותרת")]
        public string Title { get; set; }

        [Required(ErrorMessage = "יש להזין תוכן")]
        public string Text { get; set; }

        [Required(ErrorMessage = "יש להזין כתובת דוא\"ל")]
        public string Email { get; set; }

        public string Name { get; set; }
        public string SchoolName { get; set; }
        public string Phone { get; set; }

        public int ContactMailTypeId { get; set; }
        public virtual ContactMailType ContactMailType { get; set; }
    }
}